class Anagram {
	public static void main(String[] args) {
		UserInput input = new UserInput();
		int diff = 0;
		String phrase1 = input.getString("Please enter phrase 1:");
		String phrase2 = input.getString("Please enter phrase 2:");
		
		//removing spaces
		phrase1 = phrase1.replaceAll("\\s+","");
		phrase2 = phrase2.replaceAll("\\s+","");
		char[] array1 = phrase1.toLowerCase().toCharArray();
		char[] array2 = phrase2.toLowerCase().toCharArray();
		if (array1.length != array2.length) {
			System.out.println("Initial check failed. Different lengths");
			return;
		}
		
		for (int i = 0; i < array1.length; i = i + 1) {
			diff = diff + (int)array1[i] - (int)array2[i];
		}
		
		if (diff == 0) {
			System.out.println("Could be anagrams!");
		} else {
			System.out.println("Hell no, these are not anagrams!");
		}
	}
}